package com.day0913;

import java.util.Scanner;

public class Text2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] score = new int[5];
        for(int i = 0; i < score.length; i ++){
            System.out.print("请输入第" + (i+1) + "门课的考试成绩：");
            score[i] = in.nextInt();
        }
        int max = score[0];
        for(int i = 0; i < score.length; i ++){
            if(score[i] > max){
                max = score[i];
            }
        }
        System.out.println("最高分：" + max);
    }
}
